package cn.scut.srp.model;

public enum ResponseCode {

    OK(0,"ok"),

    NOT_LOGIN(40100, "未登录"),
    EXPIRED(40101, "登录已超时"),
    NO_AUTH(40199,"没有Authorization"),
    NO_INFO(40400,"空的用户名或密码"),
    NOT_VALID(40401,"用户名或密码不符合规范"),
    ALREADY_EXIST(40402,"用户名已被占用"),
    NOT_EXIST(40403,"用户不存在"),
    WRONG_PWD(40404,"密码错误"),
    NO_SCHEDULE(40405,"没有预约"),
    NO_COURSE(40406, "没找到课程");

    private int code;

    private String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
